package com.software.loginregister.entity;

import com.google.gson.annotations.SerializedName;

public class ResetPasswordRequest {
    @SerializedName("email")
    private String email;

    @SerializedName("code")  // 改为与后端匹配的字段名
    private String code;     // 改为与后端匹配的字段名

    @SerializedName("newPassword")
    private String newPassword;

    public ResetPasswordRequest(String email, String code, String newPassword) {
        this.email = email;
        this.code = code;    // 使用新的字段名
        this.newPassword = newPassword;
    }

    // Getters and setters
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCode() {    // 改为新的getter
        return code;
    }

    public void setCode(String code) {    // 改为新的setter
        this.code = code;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }
}